package MyByteStream2;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class ByteStreamDemo3 {
    public static void main(String[] args) throws IOException {
        long start = System.currentTimeMillis();
        FileInputStream fis = new FileInputStream("D:\\File\\VID20231026202740.mp4");
        FileOutputStream fos = new FileOutputStream("C:\\Users\\Zdm\\Videos\\Captures\\copy");
        int b;
        while ((b = fis.read()) != -1){
            fos.write(b);
        }
        long finish = System.currentTimeMillis();
        System.out.println(finish - start);
        fos.close();
        fis.close();
    }
}
